<body>
<div class="bjy-admin-nav">
    <i class="fa fa-home"></i> 首页
    &gt;
    后台管理
    &gt;
    修改门店用户
</div>
<ul id="myTab" class="nav nav-tabs">
   <li>
         <a href="<{:url('auth_user_list')}>">门店用户列表</a>
   </li>
   <li class="active">
        <a href="javascript:;">修改门店用户</a>
    </li>
</ul>
<form class="form-inline">
    <table class="table table-striped table-bordered table-hover table-condensed">
        <tr>
            <th style="width:100px;text-align:center">管理组</th>
            <td>
                <{volist name="group" id="vo"}>
                    <label for="<{$vo.id}>">
                        <{$vo.title}>
                        <input class="xb-icheck" type="radio" name="group_id" value="<{$vo.id}>" id="<{$vo.id}>" <{if condition="$vo.id eq $user.group_id"}> checked <{/if}>>
                        &emsp;
                    </label>
                <{/volist}>
            </td>
        </tr>
        <tr>
            <th style="text-align:center">用户名：</th>
            <td> <input type="text" name="loginName" value="<{$user.loginName}>"> </td>
        </tr>
        <tr>
            <th style="text-align:center">手机号：</th>
            <td> <input type="text" name="phoen" value="<{$user.phone}>"></td>
        </tr>
        <tr>
            <th style="text-align:center">邮箱：</th>
            <td> <input type="text" name="email" value="<{$user.email}>"></td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input type="hidden" name="id" value="<{$user.uid}>">
                <input class="btn btn-success submit" type="button" value="修改">
            </td>
        </tr>
    </table>
</form>
</body>
<script type="text/javascript">
$(function(){
    $('.submit').click(function(){
        var formdata = $('input[name]').serialize();
        $.post('',formdata,function(data){
            if(data.code){
                alert(data.msg);
                window.location.href="<{:url('auth_user_list')}>";
            }else{
                alert(data.msg);
            }
        },'json');
    })
})
</script>